package com.cgwx.entity;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("fs_transmit_record")
@ApiModel(value="FsTransmitRecord对象", description="")
public class FsTransmitRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @ApiModelProperty(value = "任务名称")
    private String taskName;

    @ApiModelProperty(value = "原归档路径")
    private String path;

    @ApiModelProperty(value = "父文件夹id")
    private String parentId;

    @ApiModelProperty(value = "任务传输状态")
    private String status;

    @ApiModelProperty(value = "文件拥有者工号")
    private String ownerAccount;

    @ApiModelProperty(value = "文件拥有者姓名")
    private String ownerName;

    @ApiModelProperty(value = "传输完成时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDateTime completeTime;

    @ApiModelProperty(value = "文件总数")
    private String totalNum;

    @ApiModelProperty(value = "传输成功数")
    private String successNum;

    @ApiModelProperty(value = "传输失败数")
    private String failNum;

    @ApiModelProperty(value = "盘阵保存路径")
    private String savePath;

    private String column;

    private String sort;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDateTime gmtCreated;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDateTime gmtModified;

    @Override
    public String toString() {
        return "FsTransmitRecord{" +
                "id='" + id + '\'' +
                ", taskName='" + taskName + '\'' +
                ", path='" + path + '\'' +
                ", parentId='" + parentId + '\'' +
                ", status='" + status + '\'' +
                ", ownerAccount='" + ownerAccount + '\'' +
                ", ownerName='" + ownerName + '\'' +
                ", completeTime='" + completeTime + '\'' +
                ", totalNum='" + totalNum + '\'' +
                ", successNum='" + successNum + '\'' +
                ", failNum='" + failNum + '\'' +
                ", savePath='" + savePath + '\'' +
                ", gmtCreated=" + gmtCreated +
                ", gmtModified=" + gmtModified +
                '}';
    }
}
